package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"house_srv/srvclient"
)

type ServiceContext struct {
	Config config.Config
	Srv    srvclient.Srv
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Srv:    srvclient.NewSrv(zrpc.MustNewClient(c.Srv)),
	}
}
